package com.tinem.platform.web.netty.websocket.message;

import com.tinem.platform.module.pojo.enums.message.Message;
import com.tinem.platform.web.netty.websocket.util.MessageUtil;
import io.netty.channel.ChannelHandlerContext;
import org.springframework.stereotype.Service;

/**
 * @author fengzhihao
 * @version v1
 * @program: platform
 * @className EchoCommand
 * @description TODO
 * @site
 * @company
 * @create 2021/11/30 19:30:48
 */
@Service("command_echo")
public class EchoCommand implements Command{

    @Override
    public void call(ChannelHandlerContext ctx, Message message) {
        MessageUtil.sendMessage(ctx,message);
    }
}
